home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1996 February: Tool Chest / Apple Developer CD Series Tool Chest February 1996 (Apple Computer)(1996).iso / Sample Code / Snippets / Devices / SCSI Simple Sample / MakeFile next >
Encoding:
Makefile  |  1994-03-24  |  3.8 KB  |  150 lines  |  [TEXT/MPS ]

  1. #
  2. # SCSI Simple Sample
  3. # Copyright © 1993-94, Apple Computer Inc.
  4. # All rights reserved.
  5. #
  6. # Note: this requires the Macintosh on Risc Toolkit. It builds
  7. # a "fat" binary that runs native on both PowerMacintosh and on
  8. # the Motorolo 680x0 processors.
  9. #
  10. # NOTE: as of this writing, the Power Mac headers do not support
  11. # the _SCSIAtomic trap. The PPCC part of the build will therefore
  12. # fail. The program does, however, run on Power Mac in emulation.
  13. #
  14. #
  15. Src                    =    ":Src:"
  16. Obj                    =    ":Obj:"
  17. M68Objects                =                    ∂
  18.         {Obj}DoGetDriveInfo.c.mo            ∂
  19.         {Obj}DoListSCSIDevices.c.mo            ∂
  20.         {Obj}DoReadBlockZero.c.mo            ∂
  21.         {Obj}DoTestUnitReady.c.mo            ∂
  22.         {Obj}SCSISimpleSampleDisplay.c.mo    ∂
  23.         {Obj}SCSISimpleSampleMain.c.mo        ∂
  24.         {Obj}AsyncSCSI.c.mo                    ∂
  25.         {Obj}AsyncSCSIPresent.c.mo            ∂
  26.         {Obj}DoSCSICommandWithSense.c.mo    ∂
  27.         {Obj}OriginalSCSI.c.mo                ∂
  28.         {Obj}SCSICheckForDevicePresent.c.mo    ∂
  29.         {Obj}SCSIGetCommandLength.c.mo        ∂
  30.         {Obj}SCSIGetHighHostBusAdaptor.c.mo    ∂
  31.         {Obj}SCSIGetInitiatorID.c.mo        ∂
  32.         {Obj}LogManager.c.mo                ∂
  33.         {Obj}StringFormat.c.mo                ∂
  34.         {Obj}WindowUtilities.c.mo
  35.  
  36. PPCObjects                =                    ∂
  37.         {Obj}DoGetDriveInfo.c.po            ∂
  38.         {Obj}DoListSCSIDevices.c.po            ∂
  39.         {Obj}DoReadBlockZero.c.po            ∂
  40.         {Obj}DoTestUnitReady.c.po            ∂
  41.         {Obj}SCSISimpleSampleDisplay.c.po    ∂
  42.         {Obj}SCSISimpleSampleMain.c.po        ∂
  43.         {Obj}AsyncSCSI.c.po                    ∂
  44.         {Obj}AsyncSCSIPresent.c.po            ∂
  45.         {Obj}DoSCSICommandWithSense.c.po    ∂
  46.         {Obj}OriginalSCSI.c.po                ∂
  47.         {Obj}SCSICheckForDevicePresent.c.po    ∂
  48.         {Obj}SCSIGetCommandLength.c.po        ∂
  49.         {Obj}SCSIGetHighHostBusAdaptor.c.po    ∂
  50.         {Obj}SCSIGetInitiatorID.c.po        ∂
  51.         {Obj}LogManager.c.po                ∂
  52.         {Obj}StringFormat.c.po                ∂
  53.         {Obj}WindowUtilities.c.po
  54.  
  55.  
  56. #
  57. # Directory dependencies. "Everything in the {Obj} directory depends on something
  58. # in the {Src} directory." Note: you can throw away the contents of the {Obj}
  59. # directory if you want to rebuild from scratch.
  60. #
  61. {Obj}            ƒ    {Src}
  62.  
  63. #
  64. # Compiler dependencies -- common to all compilations The idea here is that all
  65. # sources are stored in the {Src} subdirectory, and all objects and code resources
  66. # output by the linker or Rez are stored in the {Obj} subdirectory.
  67. #
  68. .c.mo ƒ .c                                    ∂
  69.         {Src}SCSI.h                            ∂
  70.         {Src}LogManager.h                    ∂
  71.         {Src}MacSCSICommand.h                ∂
  72.         {Src}SCSISimpleSample.h
  73.     C {COptions}                            ∂
  74.         -o {TargDir}{Default}.c.mo            ∂
  75.         {DepDir}{Default}.c
  76.  
  77. .c.po ƒ .c                                    ∂
  78.         {Src}SCSI.h                            ∂
  79.         {Src}LogManager.h                    ∂
  80.         {Src}MacSCSICommand.h                ∂
  81.         {Src}SCSISimpleSample.h
  82.     PPCC -sym on -appleext on -w off -d MPW    ∂
  83.         -o {TargDir}{Default}.c.po            ∂
  84.         {DepDir}{Default}.c
  85.  
  86. #
  87. # Build the application.
  88. #
  89. "SCSI Simple Sample MPW" ƒƒ                    ∂
  90.         MakeFile                            ∂
  91.         {Src}SCSISimpleSample.r
  92.     Rez                                        ∂
  93.         {Src}SCSISimpleSample.r                ∂
  94.         -append                                ∂
  95.         -t APPL                                ∂
  96.         -i "{CIncludes}"                    ∂
  97.         -i "{RIncludes}"                    ∂
  98.         -o {targ}
  99.  
  100. "SCSI Simple Sample MPW" ƒƒ                    ∂
  101.         MakeFile                            ∂
  102.         {M68Objects}
  103.     Link                                    ∂
  104.         -t APPL                                ∂
  105.         {M68Objects}                        ∂
  106.         "{Libraries}"Runtime.o                ∂
  107.         "{Libraries}"Interface.o            ∂
  108.         -o {targ}
  109.  
  110. "SCSI Simple Sample Fat" ƒƒ                    ∂
  111.         MakeFile                            ∂
  112.         {Src}SCSISimpleSample.r
  113.     Rez                                        ∂
  114.         {Src}SCSISimpleSample.r                ∂
  115.         -append                                ∂
  116.         -t APPL                                ∂
  117.         -i "{CIncludes}"                    ∂
  118.         -i "{RIncludes}"                    ∂
  119.         -o {targ}
  120.  
  121. "SCSI Simple Sample Fat" ƒƒ                    ∂
  122.         MakeFile                            ∂
  123.         {M68Objects}
  124.     Link                                    ∂
  125.         -t APPL                                ∂
  126.         {M68Objects}                        ∂
  127.         "{Libraries}"Runtime.o                ∂
  128.         "{Libraries}"Interface.o            ∂
  129.         -o {targ}
  130.  
  131. "SCSI Simple Sample Fat" ƒƒ                    ∂
  132.         "{Obj}SCSISimpleSample.xcoff"
  133.     MakePEF                                    ∂
  134.         {deps}                                ∂
  135.         -l InterfaceLib.xcoff=InterfaceLib    ∂
  136.         -l StdCLib.xcoff=StdCLib            ∂
  137.         -o {targ}                            ∂
  138.         -ft APPL -fc '????'
  139.  
  140. "{Obj}SCSISimpleSample.xcoff" ƒ                ∂
  141.         MakeFile                            ∂
  142.         {PPCObjects}
  143.     PPCLink                                    ∂
  144.         {PPCObjects}                        ∂
  145.         "{PPCLibraries}"StdCLib.xcoff        ∂
  146.         "{PPCLibraries}"InterfaceLib.xcoff    ∂
  147.         "{PPCLibraries}"PPCCRuntime.o        ∂
  148.         -main main ∂
  149.         -o {targ}
  150.